import httpInstance from '@/utils/http'

export const insertCartApi = ({skuId, count})=>{
  return httpInstance({
    url: '/member/cart',
    method: 'post',
    data: {
      skuId,
      count
    }
  })
}

export const deleteCartApi = (ids)=>{
return httpInstance({
  url: '/member/cart',
  method: 'delete',
  data: {
    ids
  }
})
}

export const findNewCartListApi = ()=>{
  return httpInstance({
    url: '/member/cart',
    method: 'get'
  })
}

export const mergeCartApi = (data)=>{
  return httpInstance({
    url: '/member/cart/merge',
    method: 'post',
    data
  })
}
